@extends('admin.layout.layout')
@section('title')
    <title>北京仁爱慈善基金CMS管理系统 >> 添加友情链接</title>
@endsection
@section('con')
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">友情链接添加</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
	<div class="panel panel-default">
        <div class="panel-heading">
           @if (count($errors) > 0)
			    <div class="alert alert-danger">
			        <ul>
			            @foreach ($errors->all() as $error)
			                <li>{{ $error }}</li>
			            @endforeach
			        </ul>
			    </div>
			@endif 
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="col-lg-6 col-lg-offset-3">
                    <form role="form" action="{{asset('/admin/blink/insert')}}" method="post">
                        <div class="form-group">
                            <label>链接名称:</label>
                            <input class="form-control" type="text" name="name">
                        </div>
                        <div class="form-group">
                            <label>链接地址:</label>
                            <input class="form-control" type="text" name="url">
                        </div>
						{{ csrf_field() }}
                        <button type="submit" class="btn btn-info">添加</button>
                        <button type="reset" class="btn btn-outline btn-warning">重置</button>
                    </form>
                </div>
                <!-- /.col-lg-6 (nested) -->
               
                <!-- /.col-lg-6 (nested) -->
            </div>
            <!-- /.row (nested) -->
        </div>
        <!-- /.panel-body -->
    </div>
   
    <!-- /.row -->
  
    <!-- /.row -->
@endsection